"""
https://docs.python.org/3/howto/logging.html#logging-basic-tutorial

The call to basicConfig() should come before any calls to a logger’s methods such as debug(), info(), etc. Otherwise,
that logging event may not be handled in the desired manner.

"""

import logging

# logging.basicConfig(level=logging.DEBUG, )

logging.warning('A warning message.')
logging.debug('A debug message.')

logging.basicConfig(level=logging.DEBUG, )  # It seems that basicConfig after logging.log has no effect.

logging.warning('Another warning message.')
logging.debug('Another debug message.')
